import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/HomeView.vue'),
  },
  {
    path: '/file',
    name: 'file',
    component: () => import('../views/FileView.vue'),
  },
  {
    path: '/file2',
    name: 'file2',
    component: () => import('../views/FileView2.vue'),
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue'),
    props: true,
  }
]

const router = new VueRouter({
  routes
})

export default router
